home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / gfx / 3d / irit50src.lha / irit5 / irit / program.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-29  |  3.4 KB  |  103 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d (not only polygonal) solid modeller.             *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * Main definition Header file for Irit - the 3d (not only polygonal) sm.     *
  7. *****************************************************************************/
  8.  
  9. #ifndef    PROGRAM_H
  10. #define    PROGRAM_H
  11.  
  12. #include <setjmp.h>    /* Used for the long jumps - to main iteration loop. */
  13. #include "irit_sm.h"
  14. #include "cagd_lib.h"       /* We define curves and surfaces handles as well. */
  15. #include "symb_lib.h"
  16. #include "trim_lib.h"
  17. #include "triv_lib.h"
  18. #include "allocate.h"
  19. #include "iritprsr.h"
  20. #include "attribut.h"
  21.  
  22. #define INPUT_LINE_LEN 2500           /* Input parser maximum line length. */
  23.  
  24. #define DEFAULT_LOAD_COLOR 1  /* Default colors for object loaded using LOAD */
  25. #define DEFAULT_PRIM_COLOR 4  /* primitives colors, respectively.         */
  26.  
  27. #define DEFAULT_RESOLUTION    20    /* Used in Primitiv/Boolean modules. */
  28. #define DEFAULT_DRAW_CTLPT    FALSE    /* If control mesh/poly to be drawn. */
  29. #define DEFAULT_ECHOSRC        TRUE                /* Echo sourced program? */
  30. #define DEFAULT_DUMPLVL        1                /* Min. information. */
  31.  
  32. #define MACHINE_MSDOS        1
  33. #define MACHINE_SGI        2
  34. #define MACHINE_HP        3
  35. #define MACHINE_APOLLO        4
  36. #define MACHINE_SUN        5
  37. #define MACHINE_UNIX        6
  38. #define MACHINE_IBMOS2        7
  39. #define MACHINE_IBMNT        8
  40. #define MACHINE_AMIGA        9
  41.  
  42. #define KV_MIN_LEGAL        -9999
  43. #define KV_UNIFORM_OPEN        -10000
  44. #define KV_UNIFORM_FLOAT    -10001
  45. #define KV_UNIFORM_PERIODIC    -10002
  46.  
  47. extern IPObjectStruct
  48.     *GlblObjList;                   /* All objects on system. */
  49.  
  50. extern jmp_buf
  51.     GlblLongJumpBuffer;                      /* Used in error recovery. */
  52.  
  53. extern FILE
  54.     *GlblLogFile;           /* If do log everything, it goes to here. */
  55.  
  56. extern int
  57. #ifdef DJGCC                        /* Defaults for intr_lib windows. */
  58.     GlblWindowFrameWidth,
  59.     GlblViewFrameColor,
  60.     GlblViewBackColor,
  61.     GlblTransFrameColor,
  62.     GlblTransBackColor,
  63.     GlblStatusFrameColor,
  64.     GlblStatusBackColor,
  65.     GlblInputFrameColor,
  66.     GlblInputBackColor,
  67.     GlblDrawHeader,
  68.     GlblSmoothTextScroll,
  69.     GlblIntrSaveMethod,
  70.     GlblMouseSensitivity,         /* Sensitivity control of mouse device. */
  71.     GlblJoystickExists,
  72. #endif /* DJGCC */
  73.     GlblDisplayDeviceInput,       /* Handlers to streams to display device. */
  74.     GlblDisplayDeviceOutput,
  75.     GlblFatalError,          /* True if disaster in system - must quit! */
  76.     GlblPrintLogFile,             /* If TRUE everything goes to log file. */
  77.     GlblDoGraphics,        /* Control if running in graphics/text mode. */
  78.     GlblLoadColor,          /* Default colors for object loaded using LOAD */
  79.     GlblPrimColor;           /* primitives colors, respectively.         */
  80.  
  81. extern char 
  82. #ifdef DJGCC                 /* Defaults for DJGCC intr_lib windows. */
  83.     *GlblViewWndwPos,
  84.     *GlblTransWndwPos,
  85.     *GlblStatusWndwPos,
  86.     *GlblInputWndwPos,
  87.     *GlblIntrSaveDisk,
  88. #endif /* DJGCC */
  89.     *GlblHelpFileName,
  90.     *GlblStartFileName,            /* Name of startup file to executed. */
  91.     *GlblLogFileName,                    /* Name of log file. */
  92.     *GlblFloatFormat;          /* Controls the ways real numbers are printed. */
  93.  
  94. extern RealType
  95.     GlblPointLen;                   /* Scaler for point if drawn. */
  96.  
  97. void SetIritState(char *Name, IPObjectStruct *Data);
  98. void IritExit0(void);
  99. void IritExit(int ExitCode);
  100. void DefaultFPEHandler(int Type);
  101.  
  102. #endif    /* PROGRAM_H */
  103.